<?php
include 'config.php';

//实例化具体API对应的Request类
$req = new QrDataGetRequest;
$req->content = "www.ecbox.com";
$req->logo = "http://www.ecbox.com/images/ecbox-logo_400_400.png";
$req->height = 500;
$req->width = 500;
$req->margin = 0;
$resp = $c->execute($req);

//print_r($resp->qrData);

header('Content-type: image/png');
echo base64_decode($resp->qrData);
?>